import request from '@/utils/request'

// 查询超功率报警列表
export function listOverpower_warning(query) {
  return request({
    url: '/system/overpower_warning/list',
    method: 'get',
    params: query
  })
}

// 查询超功率报警详细
export function getOverpower_warning(warningId) {
  return request({
    url: '/system/overpower_warning/' + warningId,
    method: 'get'
  })
}

// 新增超功率报警
export function addOverpower_warning(data) {
  return request({
    url: '/system/overpower_warning',
    method: 'post',
    data: data
  })
}

// 修改超功率报警
export function updateOverpower_warning(data) {
  return request({
    url: '/system/overpower_warning',
    method: 'put',
    data: data
  })
}

// 删除超功率报警
export function delOverpower_warning(warningId) {
  return request({
    url: '/system/overpower_warning/' + warningId,
    method: 'delete'
  })
}
